package com.zjj.learn.javaplus.pkg01.demo13;

public class Cat extends Animal{

    private String color;

    public Cat() {
        // this(...) 构造方法必须使用在第一行
        this("默认猫","默认颜色");

    }

    public Cat(String name, String color) {
        super(name);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
